package com.pojo;

public class Clerk {
	int cno;
	String cname;
	String cpwd;
	int csex;
	String cphone;
	String cremark;
	String cdate;
	public int getCno() {
		return cno;
	}
	public void setCno(int cno) {
		this.cno = cno;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getCpwd() {
		return cpwd;
	}
	public void setCpwd(String cpwd) {
		this.cpwd = cpwd;
	}
	public int getCsex() {
		return csex;
	}
	public void setCsex(int csex) {
		this.csex = csex;
	}
	public String getCphone() {
		return cphone;
	}
	public void setCphone(String cphone) {
		this.cphone = cphone;
	}
	public String getCremark() {
		return cremark;
	}
	public void setCremark(String cremark) {
		this.cremark = cremark;
	}
	public String getCdate() {
		return cdate;
	}
	public void setCdate(String cdate) {
		this.cdate = cdate;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cdate == null) ? 0 : cdate.hashCode());
		result = prime * result + ((cname == null) ? 0 : cname.hashCode());
		result = prime * result + cno;
		result = prime * result + ((cphone == null) ? 0 : cphone.hashCode());
		result = prime * result + ((cpwd == null) ? 0 : cpwd.hashCode());
		result = prime * result + ((cremark == null) ? 0 : cremark.hashCode());
		result = prime * result + csex;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Clerk other = (Clerk) obj;
		if (cdate == null) {
			if (other.cdate != null)
				return false;
		} else if (!cdate.equals(other.cdate))
			return false;
		if (cname == null) {
			if (other.cname != null)
				return false;
		} else if (!cname.equals(other.cname))
			return false;
		if (cno != other.cno)
			return false;
		if (cphone == null) {
			if (other.cphone != null)
				return false;
		} else if (!cphone.equals(other.cphone))
			return false;
		if (cpwd == null) {
			if (other.cpwd != null)
				return false;
		} else if (!cpwd.equals(other.cpwd))
			return false;
		if (cremark == null) {
			if (other.cremark != null)
				return false;
		} else if (!cremark.equals(other.cremark))
			return false;
		if (csex != other.csex)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Clerk [cno=" + cno + ", cname=" + cname + ", cpwd=" + cpwd
				+ ", csex=" + csex + ", cphone=" + cphone + ", cremark="
				+ cremark + ", cdate=" + cdate + "]";
	}
	public Clerk(int cno, String cname, String cpwd, int csex, String cphone,
			String cremark, String cdate) {
		super();
		this.cno = cno;
		this.cname = cname;
		this.cpwd = cpwd;
		this.csex = csex;
		this.cphone = cphone;
		this.cremark = cremark;
		this.cdate = cdate;
	}
	public Clerk() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
